﻿using System;
using System.Web.UI;

public partial class Tags : Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!string.IsNullOrEmpty(Request.QueryString["ID"]))
        {
            string tag = Server.UrlDecode(Request.QueryString["ID"]);
            litTitle.Text = tag;
            tagArticles.DataSource = Entities.GetArticlesByTag(tag);
            tagArticles.DataBind();
        }
    }
}